<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\api\CartController;
use App\Http\Controllers\api\HomeController;
use App\Http\Controllers\api\RecordController;
use App\Http\Controllers\api\CurriculumController;
use App\Http\Controllers\api\PayController;
use App\Http\Controllers\api\Expenditure;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
//购物车接口
Route::get('/Cart', [CartController::class, 'Cart']);
//菜单接口
Route::get('/homeList', [HomeController::class, 'homeList']);
//消息接口
Route::get('/recordList', [RecordController::class, 'recordList']);
//订单接口
Route::get('/orderList',[CurriculumController::class,'orderList']);
//支付接口
Route::get('/Pay',[PayController::class,'Pay']);
//余额接口
Route::get('/Money',[PayController::class,'Money']);
//支付记录
Route::get('/expendList',[Expenditure::class,'expendList']);
